package com.zhongli.devplatform.job;

import com.zhongli.devplatform.service.imp.user.ReadUserInfoService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 *  每天凌晨
 *  统计粉丝数 和关注数
 * @author wy
 * @since 2020/8/25
 */
@Component
public class StatisticsPinkAttTask {

    @Resource
    private ReadUserInfoService readUserInfoService;


    //       0 */1 * * * ?    0 0 1 * * ?
    @Scheduled(cron = "0 0 23 * * ?")
    public void StatisticsPinkAtt(){
        readUserInfoService.statisticsPinkAttention();
    }

}
